﻿using SangaiTech.Abstractions;
using SangaiTech.Infrastructure.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SangaiTech.Infrastructure
{
    public class EmployeeRepository : IEmployeeRepository
    {
        SangaiDataContext _dataContext;
        public EmployeeRepository()
        {
            _dataContext = new SangaiDataContext();
        }
        public IQueryable<Employee> All()
        {
            return _dataContext.Employees;
        }

        public void Dispose()
        {
            _dataContext.Dispose();
        }
    }
}
